package org.tgcloud.group.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjOrderLocalLife;
import org.tgcloud.group.web.controller.req.order.FlagshipStoreDataReq;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2025-09-01-下午4:08
 * @Description: ${description}
 */
public interface MjOrderLocalLifeMapper extends BaseMapper<MjOrderLocalLife> {
    int deleteByPrimaryKey(Integer id);

    int insert(MjOrderLocalLife record);

    int insertSelective(MjOrderLocalLife record);

    MjOrderLocalLife selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjOrderLocalLife record);

    int updateByPrimaryKey(MjOrderLocalLife record);

    List<MjOrderLocalLife> selectListByOrderId(@Param("orderId") Integer orderId);

    int updateStatusByOrderId(@Param("orderId") Integer orderId, @Param("status") short status);

    int updateFlagshipStoreData(@Param("orderId") Integer orderId, @Param("list") List<FlagshipStoreDataReq.SkuData> batchList);

}